<?php 
class Empresa extends Controller
{
	function Empresa ()
	{
		parent::Controller();
		$this->load->library('layout','layouts/layout_admin');	
		$this->load->model('empresas');
	}
	
	function index()
	{
		$data['admins'] = $this->empresas->getEveryone();		 
		$this->layout->view('empresa/search', $data);
	}
	
	
	function insert () 
	{
		$data['admins'] = $this->empresas->getEveryone();
		$this->layout->view('empresa/registerempresa', $data);
	}
	
	function edit ()
	{
		$data['admins'] = $this->empresas->getEveryone();
		$this->layout->view('adminuser/modifyuser', $data);
	}
	
	function delete ()
	{
		$data['admins'] = $this->empresas->getEveryone();
		$this->layout->view('adminuser/deleteuser', $data);
	}
	
	function detail ()
	{
		$data['admins'] = $this->empresas->getEveryone();
		$this->layout->view('adminuser/detailuser', $data);
	}
	
	function search()
	{
		//$this->verifyLogin('admin/admins/index');//revisar el parametro		
		$data['admins'] = $this->empresas->getEveryone();		 
		$this->layout->view('empresa/search', $data);
	}
	
	
}
?>